﻿<%@ Page Title="Menus" Language="C#" MasterPageFile="~/Posts/Posts.master" AutoEventWireup="true" CodeFile="Menus.aspx.cs" Inherits="Posts_Menus" %>
<%@ Register src="Header.ascx" tagname="Header" tagprefix="uc2" %>
<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <uc2:Header ID="Header1" runat="server" />
    
    <div class="tabPage clearfix">
        <asp:Panel ID="actions" CssClass="actions clearfix" runat="server">
            <div class="floatRight">
                    <asp:LinkButton ID="lnkEdit" CssClass="actionBtn abEdit" ToolTip="Edit The Nodes Details." runat="server" onclick="lnkEdit_Click">
                        <div class="tl">
                            <div class="tr">
                                <div class="bl">
                                    <div class="br">
                                        <span>Edit</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:LinkButton>
                    <%--<asp:LinkButton ID="lnkEdit" Text="Edit" ToolTip="Edit" CssClass="btn32 btnEdit32" runat="server" 
                        onclick="lnkEdit_Click" />--%>
                    
                    <asp:LinkButton ID="lnkSave" CssClass="actionBtn abSave" onclick="lnkSave_Click" ToolTip="Save Changes." runat="server">
                        <div class="tl">
                            <div class="tr">
                                <div class="bl">
                                    <div class="br">
                                        <span>Save</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:LinkButton>
                    <%--<asp:LinkButton ID="lnkSave" Text="Save" CssClass="btn32 btnSave32"  runat="server" 
                        onclick="lnkSave_Click" />--%>
                    
                     <asp:LinkButton ID="lnkCancel" CssClass="actionBtn abCancel" onclick="lnkCancel_Click" ToolTip="Cancel Changes." runat="server">
                        <div class="tl">
                            <div class="tr">
                                <div class="bl">
                                    <div class="br">
                                        <span>Cancel</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:LinkButton>
                    <%--<asp:LinkButton ID="lnkCancel" Text="Cancel" CssClass="btn32 btnCancel32"  runat="server" 
                        onclick="lnkCancel_Click" />    --%>
                </div>
        </asp:Panel>
        <telerik:RadGrid ID="gridMenus" AutoGenerateColumns="false" 
            AutoGenerateEditColumn="false" DataSourceID="dsMenus" runat="server" 
            onitemdatabound="gridMenus_ItemDataBound">
            <MasterTableView DataKeyNames="Id" EditMode="InPlace">
                <Columns>
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" ReadOnly="true" />
                    <telerik:GridBoundColumn DataField="Notes" HeaderText="Notes" ReadOnly="true" />
                    <telerik:GridTemplateColumn HeaderText="Included">
                        <ItemTemplate>
                            <asp:CheckBox ID="cbIncluded" runat="server" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <NoRecordsTemplate>This site does not have any menus set up. Menus are set up by developers and used in templates to navigate the site.</NoRecordsTemplate>
                <EditItemStyle BackColor="White" ForeColor="#333333" BorderColor="#FFFFFF" BorderWidth="1px" BorderStyle="Solid"  />
            </MasterTableView>
        </telerik:RadGrid>        
    </div>
    <acms:MenuDataSource ID="dsMenus" OnSelectData="dsMenus_SelectData" runat="server" />
</asp:Content>

